package com.woniuxy.springmvcparam.controller;

import com.woniuxy.springmvcparam.bean.UserBean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author linke
 * @version 1.0
 * @className: SystemController
 * @description: 系统控制器
 * @date 2021/11/13 20:48
 */
@RequestMapping("sys")
@Controller
public class SystemController {
    /**
     * 登录页面跳转至注册
     * @param userBean
     * @return 字符串用作路径跳转
     */
    @RequestMapping("login")
    public String login(UserBean userBean){
        System.out.println(userBean);//UserBean(id=null, userName=null, loginName=123, password=222, age=null, marray=false, income=0.0, hobbys=null)
        return "jsp/register";
    }

}
